cc=/home/arte/workspace/driver/tools/gcc-3.4.5-glibc-2.3.6/bin/arm-linux-gcc
ld=/home/arte/workspace/driver/tools/gcc-3.4.5-glibc-2.3.6/bin/arm-linux-ld
objcp=/home/arte/workspace/driver/tools/gcc-3.4.5-glibc-2.3.6/bin/arm-linux-objcopy
objdmp=/home/arte/workspace/driver/tools/gcc-3.4.5-glibc-2.3.6/bin/arm-linux-objdump

all:
	$(cc) -c -o led.o led.c
	$(cc) -c -o uart.o uart.c
	$(cc) -c -o init.o init.c
	$(cc) -c -o main.o main.c
	$(cc) -c -o start.o start.S
	# $(ld) -Ttext 0 -Tdata start.o led.o uart.o init.o main.o -o relocate.elf
	$(ld) -T relocate.lds start.o led.o uart.o init.o main.o -o relocate.elf
	$(objcp) -O binary -S relocate.elf relocate.bin
	$(objdmp) -D relocate.elf > relocate.dis

clean:
	rm *.bin *.o *.elf *.dis


